<%@ page language="Java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    
    <title>解决中文乱码</title>        
 </head>
 <body>
 <jsp:useBean id="news" class="com.lyq.bean.News" ></jsp:useBean>
 <jsp:useBean id="encoding" class="com.lyq.bean.CharactorEncoding" ></jsp:useBean>
 <jsp:setProperty name="news" property="*" />
 	<div align="center">
 		<div id="container">
 			<div id="title">
 				<%= encoding.toString(news.getTitle()) %>
 			</div>
 			<hr>
 			<div id="content">
 				<%= encoding.toString(news.getContent()) %>
 			</div>
 		</div>
 	</div>
 </body>
</html>